{%extends 'base.html'%}
{%block title%}{{p.nickname|default:'找不到制定的手机'}}{%endblock%}
{%block content%}
<div class='container' align = center>
{%if p%}
<table>
	<tr><td align=center><h3>{{p.nickname}}</h3></td></tr>
	<tr><td align=center>{{p.description}}</td></tr>
	<tr><td align=center>公元{{p.year}}年出厂</td></tr>
	<tr><td align=center>售价:(CNY)￥{{p.price}}元</td></tr>
	{%for image in images%}
		{%if forloop.first %}
			<tr><td align=center>
		{%endif%}
			<img src='{{image.url}}'height = 100% width = 100%><br>
		{%if forloop.last%}
			</td></tr>
		{%endif%}
	{%empty%}
		<tr><td align=center>暂无高清无码图</td></tr>
	{%endfor%}
</table>
{%else%}
<h2>你倒是拿个手机啊</h2>
{%endif%}
<div align=right>
	<a href='/'>返回首页</a>
</div>
</div>
{%endblock%}